clear textprogressbar; clear; clc;
%% Create session, Connect devices
PROJ_PATH = [current_file_path(mfilename('fullpath') ) '\'];
session=MeasurementSession.SimpleMeasurement('owner',       'ZN', ...
                                             'name',        'TestSpectrum',...
                                             'device_file', [PROJ_PATH 'device.dat'] );
                                         
session.addDescription( ...
    ['This Measurement tests the batch operation of Spectrum Module.' ...
     'Device infomation should be provide in ''device.dat''. '  ...
     'Module settings should be provide in ''settings.mat''. ' ] ...
    );
%% Spectrum Settings
zi = session.getDevice('dev3543');
plotter = zi.plotterModule(session);

%% 
plotter.setMonitorNode('x');
plotter.run({'0','1'}, 'total_duration', 30.0);
data=plotter.getDataNode('x');
